﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Scheduler;
using System.Drawing;

namespace ScheduleGrid
{
    public class AppointmentTimeConstraint : Appointment
    {
        #region Data
        private TimeConstraint m_TimeConstraint;
        #endregion


        public AppointmentTimeConstraint(DateTime _StartTime, DateTime _EndTime, TimeConstraint _Constraint) 
            : base(_StartTime,_EndTime)
        {
            this.m_TimeConstraint = _Constraint;

            this.m_Locked = true;
            this.m_Title = "Time Constraint";

            this.color = Color.Black;
            this.m_BorderColor = Color.Yellow;
            this.m_Type = AppType.TimeConstraint;
        }


        #region Accessors
        public TimeConstraint TimeConstraint
        {
            get { return this.m_TimeConstraint; }
        }

        #endregion
    }
}
